package gob.pe.mtc.licencias.DAO;

import gob.pe.mtc.licencias.beans.TipoLicencia;

import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class TipoLicenciaDAOImpl extends HibernateDaoSupport implements TipoLicenciaDAO {

	public TipoLicenciaDAOImpl(SessionFactory sessionFactory){
		setSessionFactory(sessionFactory);
	}
	public TipoLicenciaDAOImpl(){}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<TipoLicencia> listarTiposLicencia() {
		return getHibernateTemplate().find("from TipoLicencia");
	}

}
